import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const state = {
  // 书架信息
  bookShelf: []
}
const mutations = {
  setBookShelf (state, val) {
    state.bookShelf = val
  }
}
export default new Vuex.Store({
  state,
  mutations
})
